﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
using DAL;

namespace BLL
{
   public class TinTuc_BLL
    {
        public static List<TinTuc> LayTatCa()
        {
            return TinTucDAL.LayTatCa();
        }
        public static bool Them(TinTuc tt)
        {
            return TinTucDAL.Them(tt);
        }
        public static bool Sua(TinTuc tt)
        {
            return TinTucDAL.Sua(tt);
        }
        public static bool Xoa(string ID)
        {
            return TinTucDAL.Xoa(ID);
        }
        public static TinTuc LayID(string IdTinTuc)
        {
            return TinTucDAL.LayID(IdTinTuc);
        }
        public static List<TinTuc> TTPhanTrang(string page, out int howManyPages)
        {
            return TinTucDAL.TTPhanTrang(page, out howManyPages);
        }
        public static List<TinTuc> Paging(string page, out int howManyPages)
        {
            return TinTucDAL.Paging(page, out howManyPages);
        }
      
        public static bool CapNhatHienThi(string ID, bool hienthi)
        {
            return TinTucDAL.CapNhatHienThi(ID, hienthi);
        }
       
        public static List<TinTuc> TimKiemNgauNhien(string tieuDe, string page, out int howManyPages)
        {
            return TinTucDAL.TimKiemNgauNhien(tieuDe, page, out howManyPages);
        }
       
        public static List<TinTuc> SapGiam()
        {
            return TinTucDAL.SapGiam();
        }
    }
}
